﻿ 
using Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;


namespace Host2
{
    public class UserService : IUserService
    {
        /// <summary>
        /// 验证用户
        /// </summary>
        /// <param name="userName">用户名称</param>
        /// <param name="password">用户密码</param>
        /// <returns></returns>
        public bool ValidateUser(string userName, string password)
        {
            return (userName == "zgm" && password == "zgm");
        }
    }
}
